home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2625 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: indian-15.vf.pond.com!user
  2. From: tkuntz@pond.com (Tim Kuntz)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: iHelp!  Dumb question for smart THINK C users.
  5. Date: Mon, 22 Jan 1996 15:02:14 -0400
  6. Organization: FishNet
  7. Message-ID: <tkuntz-2201961502140001@indian-15.vf.pond.com>
  8. References: <stlabguest-2001961601280001@pm71001.scilab.wesleyan.edu>
  9. NNTP-Posting-Host: indian-15.vf.pond.com
  10.  
  11. In article <stlabguest-2001961601280001@pm71001.scilab.wesleyan.edu>,
  12. stlabguest@wesleyan.edu (STLab Public Access Macintosh) wrote:
  13.  
  14. > I'm a total newbie to C programming, but I got a copy of THINK C yesterday
  15. > and decided to try to learn.  So I tried a very simple program:
  16. > #include <STDIO.h>
  17. > main()
  18. > {
  19. >    printf(  "bla" );
  20. > }
  21. > It compiled without any errors, but when I tried to run it, it said that
  22. > there was a link error: it didn't know what "prinf" meant.  I'm sure that
  23. > it was loading the "STDIO.h" properly, because I changed the program to:
  24. Did you load the ANSI file from the Standard Libraries section of the
  25. THINK C folder?  I am also a total newbie but I just did the exercise you
  26. are trying to do and the part you didn't mention was loading that libary.
  27.  
  28. Under Source - Add Files - Scroll around until you find Standard Libraries
  29. and Add ANSI.  Click Done and now run the program.
  30.  
  31. Good luck - Tim Kuntz
  32.